package io.github.noahzu.daka

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

abstract class BaseActivity : AppCompatActivity() {
    protected val TAG = this::class.java.simpleName

    override fun onCreate(savedInstanceState: Bundle?) {
        beforeCreate()
        super.onCreate(savedInstanceState)
        setContentView(layoutId())
        afterCreate()
    }

    abstract fun layoutId() : Int
    abstract fun beforeCreate()
    abstract fun afterCreate()
}
